package com.demo.di.event;

import org.springframework.context.ApplicationEvent;

/**
 * 描述：
 *
 * @author lida
 * @time 2019/10/15 15:14
 */
class MessageEvent extends ApplicationEvent {
	private static final long serialVersionUID = 123L;
	private String msg;

	/**
	 * Create a new ApplicationEvent.
	 *
	 * @param source the object on which the event initially occurred (never {@code null})
	 */
	MessageEvent(Object source, String msg) {
		super(source);
		this.msg = msg;
	}

	String getMsg(){
		return msg;
	}
}
